<form id="user-${_user.id}" action="@{ManagerController.save_roles()}" method="POST">
	
<input type="hidden" name="user" value="${_user.id}"/>

#{list items: _roles, as:'rol'}
	<p><input id="rol-${rol}" name="roles" type="checkbox" value="${rol}">${rol}</input></p>
#{/list}
<script type="text/javascript">
	#{list items: _user.roles, as: 'user_rol'}
		$("form#user-${_user.id} input[type='checkbox'][id='rol-${user_rol}']").attr("checked", true);
	#{/list}
</script>

<input type="submit" value="submit"/>
</form>
